#ifndef VIEWPLAYERSTATS_H
#define VIEWPLAYERSTATS_H

#include <QWidget>
#include "player.h"
#include "gamestatistic.h"
#include <QString>
#include <QVector>

namespace Ui {
class ViewPlayerStats;
}

class ViewPlayerStats : public QWidget
{
    Q_OBJECT
    
public:
    explicit ViewPlayerStats(QWidget *parent = 0);
    ViewPlayerStats(QVector<Player*> home, QVector<GameStatistic*> homeStats, QVector<Player*> away, QVector<GameStatistic*> awayStats);
    ~ViewPlayerStats();
    
private:
    Ui::ViewPlayerStats *ui;
    QVector<Player*> homeLineup;
    QVector<GameStatistic*> homeStatistics;
    QVector<Player*> awayLineup;
    QVector<GameStatistic*> awayStatistics;
    bool isHomeSelected;

public slots:
    void loadHome();
    void loadAway();
    void loadPlayer();
};

#endif // VIEWPLAYERSTATS_H
